package com.atguigu.yygh.common.result;

import lombok.Data;


public enum REnum {
    SUCCESS(20000,"成功",true),
    ERROR(20001,"失败",false);

    private REnum(Integer code,String message,Boolean success){
        this.code=code;
        this.message=message;
        this.success=success;
    };
    private Integer code;
    private String message;
    private Boolean success;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public Boolean getSuccess() {
        return success;
    }
}
